﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Deom02
{
    class Press
    {
        private int id;
        private string name;
        private string address;

        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Address
        {
            get { return this.address; }
            set { this.address = value; }
        }
        public void Hi()
        {
            Console.WriteLine("出版社编号：{0}", this.id);
            Console.WriteLine("出版社名称：{0}", this.name);
            Console.WriteLine("出版社地址：{0}", this.address);
        }
    }
}
